<!doctype html>
<html>
  <head>
    <script src="assets/log.js"></script>
    <script src="assets/loadjs/loadjs.js"></script>
    <script>
      // load a file after window onload event fires
      window.addEventListener('load', function(ev) {
        loadjs('assets/file1.js', function() {
          log('file1.js loaded');
        });
      });
    </script>
  </head>
  <body>
    <h1>Example: Load script after window onload event fires</h1>
  </body>
</html>
